package com.qianji.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
 * @Author 钟丽诗
 * @Date 2021.3.12
 */

@ApiModel("新增活动属性类")
@Data
public class ActiveAddVO  implements Serializable {

    @NotBlank(message = "活动名称不能为空")
    @ApiModelProperty("活动名称")
    private String name;

    @NotBlank(message = "活动链接不能为空")
    @ApiModelProperty("活动链接")
    private String link;

    @ApiModelProperty(value = "活动背景图片")
    private String bgImg;

    @ApiModelProperty(value = "活动按钮颜色")
    private String buttonColor;

    @ApiModelProperty("活动规则")
    private String icon;

    @ApiModelProperty("活动次数")
    private Integer number;

    @ApiModelProperty("选择前所有选项统一的图片")
    private String listImg;

    @ApiModelProperty("规则背景图")
    private String ruleBgi;

    @ApiModelProperty("规则")
    private String rule;

    @ApiModelProperty("右边icon")
    private String iconRight;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @NotNull(message = "活动状态不能为空")
    @ApiModelProperty(value = "活动状态 0:开启  1：关闭",example ="0")
    private Integer status;

    /**
     * 参与活动每超过指定次数必中奖
     */
    @NotNull(message = "指定次数不能为空")
    private Long winningNumber;

}
